package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.Insurance;
import com.example.demo.entity.Insurance2;
import com.example.demo.repository.Insurance2Repository;
@Service
public class Insurance2Service extends BaseService<Insurance2, Integer>{
	@Autowired
	private Insurance2Repository insurance2Dao;



	public List<Insurance2> findByInsuranceId(Integer id) {
		return insurance2Dao.findByInsuranceId(id);
	}



	public List<Insurance2> findByInsurance(Insurance ins) {
		return insurance2Dao.findByInsurance(ins);
	}



	public Insurance2 findByInsurance2(Integer id) {
		// TODO Auto-generated method stub
		return insurance2Dao.findByInsurance2(id);
	}
}
